<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>随机练习系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
        }
        #practice-btn {
            padding: 15px 40px;
            font-size: 20px;
            cursor: pointer;
            border: none;
            border-radius: 8px;
            background-color: #4CAF50;
            color: white;
            transition: background-color 0.3s;
            margin: 20px 0;
        }
        #practice-btn:hover {
            background-color: #45a049;
        }
        #result-container {
            margin-top: 30px;
            padding: 20px;
            background-color: #f9f9f9;
            border-radius: 8px;
            font-size: 24px;
        }
        #counter {
            margin-top: 20px;
            font-size: 18px;
            color: #666;
        }
        .input-container {
            margin: 20px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        #new-word {
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 200px;
        }
        #add-word-btn {
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
            border: none;
            border-radius: 4px;
            background-color: #ff4444;
            color: white;
            transition: background-color 0.3s;
        }
        #add-word-btn:hover {
            background-color: #ff0000;
        }
        #word-list {
            margin-top: 20px;
            font-size: 16px;
            color: #666;
            cursor: pointer;
        }
        #word-list-title {
            color: #666;
            cursor: pointer;
            user-select: none;
        }
        #word-list-title:hover {
            color: #333;
        }
        #word-list-content {
            display: none;
            margin-top: 10px;
            padding: 10px;
            background-color: #f5f5f5;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <h1>随机练习系统</h1>
    
    <div class="input-container">
        <input type="text" id="new-word" placeholder="输入新词汇">
        <button id="add-word-btn">确定</button>
    </div>

    <button id="practice-btn">全部练习</button>
    
    <div id="result-container">
        <div id="random-word">点击上方按钮开始练习</div>
    </div>

    <div id="counter">已随机次数：0</div>
    
    <div id="word-list">
        <div id="word-list-title">点击查看当前词库 ▼</div>
        <div id="word-list-content"></div>
    </div>

    <script src="main.js"></script>
</body>
</html> 